using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace HBFramework
{
    public class DebugUtility
    {
        private static bool openLog => ProjectConfig.Config.openLog;

        public static void Log(string tag, object message)
        {
            if (!openLog) return;
            Debug.Log($"{tag} {message}");
        }

        public static void LogError(string tag, object message)
        {
            if (!openLog) return;
            Debug.LogError($"{tag} {message}");
        }

        public static void LogWarning(string tag, object message)
        {
            if (!openLog) return;
            Debug.LogWarning($"{tag} {message}");
        }
    }
}